PowerTCP Mail for .NET
BeginInvoke(String,Byte[],Object) Method
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > Imap Class > BeginInvoke Method : BeginInvoke(String,Byte[],Object) Method




command
The command to issue to the server.
data
The data to send after the server responds to the command.
state
User state information.
Begins to asynchronously send the specified user command.

Syntax

Visual Basic (Declaration) 
Public Overloads Function BeginInvoke( _
   ByVal command As String, _
   ByVal data() As Byte, _
   ByVal state As Object _
) As IAsyncResult
Visual Basic (Usage)Copy Code
Dim instance As Imap
Dim command As String
Dim data() As Byte
Dim state As Object
Dim value As IAsyncResult
 
value = instance.BeginInvoke(command, data, state)
C# 
public IAsyncResult BeginInvoke( 
   string command,
   byte[] data,
   object state
)
Managed Extensions for C++ 
public: IAsyncResult* BeginInvoke( 
   string* command,
   byte[]* data,
   Object* state
) 
C++/CLI 
public:
IAsyncResult^ BeginInvoke( 
   String^ command,
   array<byte>^ data,
   Object^ state
) 

Parameters

command
The command to issue to the server.
data
The data to send after the server responds to the command.
state
User state information.

Return Value

An IAsyncResult that represents the asynchronous operation, which could still be pending.

Exceptions

ExceptionDescription
Dart.PowerTCP.Mail.ProtocolExceptionBad IMAP protocol response received from server.
System.Net.Sockets.SocketExceptionThe requested address is not valid in its context.
System.InvalidOperationExceptionBeginXXX method used without providing an EndXXX event handler.

Remarks

The Imap.BeginInvoke method begins to asynchronously send out the specified command. The contents of data are sent as a literal following any continuation responses from the IMAP server. Upon completion, the Imap.EndInvoke event is raised. This follows the APPEND command model, where the APPEND command is issued, the server issues a continuation response, and the actual message data is then sent

The Imap.BeginInvoke method is useful for enabling communication with servers that recognize proprietary commands not included in the Imap component model.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.